
//定义主题色
@theme-color: #5d8b49;
//定义点缀色
@adorn-color: #ffa11e;
//边框色
@tborder-color: #e4e9e2;
//
@bg-color: #eaf6eb;
//动作
.trandtion-ease(@time: .2s){
    transition: all ease-in-out @time;
    -webkit-transition: all ease-in-out @time;
    -ms-transition: all ease-in-out @time;
}
//btn
.ant-btn{
    display: inline-block;
    height: 34px;
    line-height: 1.1;
    min-width: 86px;
    margin-left: 20px;
    border:1px #d2d2d2 solid;
    border-radius: 20px;
    background-color: #fff;
    cursor: pointer;
    .trandtion-ease();
    &:focus, &:hover {
        color: @theme-color;
        border-color: @theme-color;
    }
    &.ant-btn-ghost{
        background-color: @theme-color;
        border:1px @theme-color solid;
        color: #fff;
    }
    &.ant-btn-ghost:focus, &.ant-btn-ghost:hover {
        color: #fff;
        border-color: @theme-color;
        opacity: .9;
    }
}
.layui-btn-self{
    background-color: @theme-color;
    height: 34px;
    line-height: 34px;
    font-size: 13px;
    &.layui-btn-small{
        background-color: @theme-color;
        height: 24px;
        line-height: 24px;
    }
}
.layui-form-item-self{
    margin-bottom: 0;
    .layui-form-label{
        padding: 7px 15px;
    }
    .layui-input-inline{
        width: 132px;
    }
    .layui-input, .layui-select, .layui-textarea{
        height: 34px;
        line-height: 34px;
    }
}
.color-red{
    color: red!important;
}
//system
.admin-submain{
    margin: 0 10px;
}
    //tab right
.admin-tab-right{
    position: absolute;
    right: 12px;
    top: 2px;
    height: 40px;
    line-height: 40px;
    .icon-wrapper{
        button{
            border: none;
            background-color: transparent;
            margin-right: 8px;
            color: #444;
            cursor: pointer;
            .trandtion-ease();
            &.ant-btn{
                border:1px #d2d2d2 solid;
                margin-left: 0;
                color: #666; 
                &:hover{
                    border:1px @theme-color solid;
                }
            }
            &.ant-btn-ghost{
                background-color: #5d8b49;
                border: 1px #5d8b49 solid;
                color: #fff;
                min-width: 80px;
                margin-left: 12px;
                &:hover{
                    color: #fff;
                }
            }
            &:hover{
                color: @theme-color;
            }
            i{
                margin: 0 3px;
            }
        }
    }
}
.admin-subtab{
    margin-top: 4px;
    .search-barbox{
        height: 34px;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        .search-bar{
            display: inline-block;
            line-height: 34px;
        }
        .selectbar{
            display: inline-block;
            margin-right: 10px;
            .listbox{
                position: relative;
                i{
                    margin-left: 5px;
                    font-size: 12px;
                    display: inline-block;
                    .trandtion-ease();
                }
                .layui-nav-child{
                    top: 32px;
                    dd{
                        padding: 0 20px;
                        &.layui-this:hover{
                            background-color: #5FB878;
                        }
                        &:hover{
                            background-color: #f2f2f2;
                        }
                    }
                }
                &:hover .layui-nav-child{
                    display: block;
                }
                &:hover .layui-icon{
                    transform:rotate(180deg);
                    -ms-transform:rotate(180deg); /* Internet Explorer */
                }
            }
        }
        
        .input-search{
            display: inline-block;
            margin-left: 10px;
            
            .input-search-inner{
                display: inline-block;
               position: relative; 
            }
            *{
                box-sizing: border-box;
            }
            input{
                width: 340px;
                height: 34px;
                line-height: 34px;
                padding-left: 20px;
                padding-right: 26px;
                border-radius: 20px;
                border: 1px solid @tborder-color;
                .trandtion-ease();
                &:hover, &:focus{
                    border-color: @theme-color;
                }
            }
            .search-btn{
                position: absolute;
                right: 12px;
                top: 0;
                cursor: pointer;
            }
            .btn-search-advance{
                border: none;
                background-color: transparent;
                margin-left: 20px;
                cursor: pointer;
                .trandtion-ease();
                &:hover{
                    color: @theme-color;
                }
            }
        }
        .btn-drop-box{
            float: right;
        }
    }
    .operation-bar{
        height: 34px;
        line-height: 34px;
        display: none;
        .leftpart{
            float: left;
        }
        .btn-icon{
            background: transparent;
            padding: 0 12px;
            text-align: center;
            min-width: 60px;
            height: 34px;
            color: #666;
            border: none;
            cursor: pointer;
            line-height: normal;
            outline: none;
            &:first-child{
                padding-left: 0;
                min-width: 55px;
                margin-left: 5px;
            }
            &:hover{
                color: @theme-color;
            }
            &.operation-close{
                i{
                    font-size: 17px;
                }
            }
            i{
              margin: 0 4px;  
            }
        }
        .checked-tips {
            padding-right: 30px;
            border-right: 1px solid #ddd;
            margin-right: 24px;
            color: #666;
            em{
                color: @theme-color;
                margin: 0 4px;
            }
        }
    }
}
.submain-table{
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    .table-responsive{
        width: 100%;
        min-width: 1240px;
    }
    .checkbox{
        display: inline-block;
        width: 16px;
        height: 16px;
        position: relative;
        input{
            position: absolute;
            opacity: 0;
            width: 16px;
            height: 16px;
            z-index: 2;
            left: 0;
            top: 0;
            cursor:pointer;
        }
        i.checkbox-inner{
            position: relative;
            display: block;
            width: 14px;
            height: 14px;
            border: 1px solid #d2d2d2;
            border-radius: 3px;
            background-color: #fff;
            .trandtion-ease();
            &:before, &:after{
                display: block;
                content:"";
                position: absolute;
                background-color: red;
                transform: rotate(-45deg);
                background-color: #fff;
            }
            &:before{
                top: 5px;
                left: 4px;
                width: 2px;
                height: 6px; 
            }
            &:after{
                top: 6px;
                left: 4px;
                width: 9px;
                height: 2px;
            }
        }
        &:hover{
            i{
                border-color: @theme-color;
            }
        }
        input[type="checkbox"]:checked + i{
            background-color: @theme-color;
            border-color: @theme-color;
        }
    }
    .caozuo-box{
        .caozuo-mask{
            position: fixed;
            left:0;
            top: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0,0,0,.01);
            display: none;
        }
    }
    .caozuo-vis{
        width: 240px;
        height: 100%;
        padding: 0 20px;
        text-align: left;
        background-color: #fff;
        position: absolute;
        right: -240px;
        top: 0;
        box-shadow: -2px 0 3px rgba(0,0,0,.1);
        display: none;
        z-index: 2;
        .title{
            padding-bottom: 15px;
            font-size: 16px;
            border-bottom:solid 1px #afbcaa;
            margin-top: 25px;
        }
        .content{
            position: absolute;
            top: 70px;
            left: 0;
            right: 0;
            bottom: 94px;
            padding: 0 25px;
            padding-top: 25px;
            overflow-y: auto;
            li{
                padding-bottom:20px;
                line-height: 16px;
            }
            label{
                line-height: 1;
                font-size: 14px;
                vertical-align: baseline;
                cursor: pointer;
                .checkbox{
                    vertical-align: middle;
                    margin-right: 6px;
                }
            }
        }
        .footer{
            position: absolute;
            bottom: 0;
            left: 0;
            padding: 25px 0;
        }
    }
    .table{
        border-bottom: none;
        table-layout: fixed;
        .text-center{
            text-align: center;
        }
        border-radius: 3px 3px 0 0;
        th,td{
           padding: 15px 16px 15px 8px;
           font-weight: normal;
        }
        thead tr{
            background-color: #eef9ef;
            th{
                border-bottom: none;
                text-align: left;
            }
        }
        .caozuo{
            text-align: center;
            color: #2d4112;
            position: relative;
            cursor: pointer;
            i{
                .trandtion-ease();
                &:hover{
                    color: @theme-color;
                }   
            }
            &:hover{
                .layui-nav-child{
                    display: block;
                }
            }
            .layui-nav-child{
                position: fixed;
                min-width: 0;
                right: 0;
                top: 36px;
                left: auto;
                dd{
                    padding: 0 12px;
                    i{
                        margin-right: 5px;
                    }
                    &:hover{
                        background-color: #f2f2f2;
                        a{
                            color: @theme-color;
                            
                        }
                    }
                }
            }
        }
        td{
            border-bottom: solid 1px @tborder-color;
            font-size: 13px;
            .trandtion-ease();
        }
    }
    .dataTables_wrapper{
        .table-bottom{
            clear: both;
            float: right;
            margin-right: 12px;
            >div{
                padding-top:0;
                float: left;
                line-height: 28px;
                margin-left: 10px;
                margin-top: 15px;
                .paginate_button{
                    padding: 0;
                    height: 28px;
                    line-height: 28px;
                    width: 28px;
                    text-align: center;
                    background-color: #f2f5fb;
                    margin: 0 3px;
                    .trandtion-ease();
                    &.current, &:hover, &:active{
                        background: none;
                        background-color: @theme-color;
                        border-color: @theme-color;
                        color: #fff!important;
                        outline:none;
                    }
                    &.disabled{
                        cursor: no-drop;
                    }
                    i{
                        font-size: 12px;
                    }
                }
                &.dataTables_length{
                    select{
                        height: 28px;
                        padding: 0 3px;
                        background-color: #f2f5fb;
                        border: none;
                    }
                }
            }
        }
    }
    table.dataTable.compact thead th, 
    table.dataTable.compact thead td{
        padding-top: 16px;
        padding-bottom: 16px;
    }
    table.dataTable.compact thead th.spe-center{
        padding-right: 4px;
    }
    .dataTables_wrapper.no-footer .dataTables_scrollBody,
    table.dataTable.no-footer{
        border-bottom: 0!important;
    }
    table.dataTable.no-footer{
        border-bottom: 2px solid #eef9ef!important;
    }
    .table-static{
        margin-top:0;
        tr{
            th:first-child, td:first-child{
                border-left: none;
            }
            th:last-child, td:last-child{
                border-right: none;
            }
        }
        th{
            background-color: #f8f8f8;
            padding:16px 12px;
            font-weight: normal;
            text-align: center;
            color: #000;
        }
        td{
            padding:8px 12px;
            font-size: 13px;
            text-align: center;
            .goods-img{
                width: 46px;
            }
        }
    }
    .table-gathering{
        border-left: 1px solid @tborder-color;
        border-right: 1px solid @tborder-color;
        td{
            padding: 16px 12px;
            &.gather-state{
                color: @adorn-color;
            }
            &.gather-caozuo{
                a{
                    margin: 0 12px;
                    color:@theme-color;
                    display: inline-block; 
                    &:hover{
                        text-decoration: underline;
                    }
                }
            }
        }
    }
    .table-footer-wrapper{
        text-align: right;
        ul{
            display: inline-block;
            li{
                margin-bottom: 10px;
                &:last-child{
                margin-bottom: 0; 
                }
            }
            label{
                display: inline-block;
                width: 120px;
            }
            span.num{
                display: inline-block;
                min-width: 120px;
                margin-left: 8px;
                text-align: left;
                font-size: 16px;
            }
            
        }
        .i-detail{
            display: inline-block;
            font-style: normal;
            position: relative;
            cursor: pointer;
            &:hover{
                .i-detail-show{
                    display: block;
                    -webkit-transform: scale(1, 1);
                    transform: scale(1, 1);
                }
            }
        }
        .i-detail-span{
            padding: 2px 5px;
            border-radius: 2px;
            background-color: @adorn-color;
            color: #fff;
            font-size: 12px;
        }
        .i-detail-show{
            display: none\0;
            width: 220px;
            border: #e2e2e2 solid 1px;
            border-radius: 2px;
            padding: 16px;
            position: absolute;
            right: 32px;
            bottom: 0;
            background-color: #fff;
            color: #666;
            font-size: 13px;
            .trandtion-ease();
            -webkit-transform: scale(0, 0);
            transform: scale(0, 0);
            -webkit-transform-origin: right bottom;
            transform-origin: right bottom;
            li{
                margin-bottom: 5px;
                &:last-child{
                    margin-bottom: 0;
                }
                span{
                    color: #333;
                }
            }
        }
        .table-info{
            text-align: left;
            margin-left: 12px;
            span{
                display: inline-block;
                border-radius: 2px;
                padding: 3px 5px;
                background-color: @theme-color;
                color: #fff;
                font-size: 12px;
                margin-right: 16px;
                line-height: 1;
            }
        }
        .table-info-after{
            >section{
                padding: 3px 20px;
                text-align: left;
                label{
                    color: #666;
                    width: 120px;
                    float: left;
                }
                ul{
                    margin-left: 120px;
                    display: block;
                    overflow: hidden;
                    color: #333;
                    li{
                        float: left;
                        width: 256px;
                        margin-right: 36px;
                        margin-bottom: 0;
                    }
                }
            }
        }
    }
}
//高级搜索
.advanced-search{
  .layui-input{
      width: 360px;
  }
}
body{
    .bigimg-show{//小图展大图
        display: none;
        width: 200px;
        padding: 2px;
        background-color: #fff;
        border-radius: 2px;
        border: solid 1px #e2e2e2;
        box-shadow: 0 0 5px rgba(0,0,0,.1);
        position: fixed;
        img{
            width: 100%;
        }
    }
    .advanced-search-mask{
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,.08);
        display: none;
    }
    .advanced-skin{
        width: 100%!important;
        top: 12px; 
        left: 0;
        display: none;
        z-index: 3;
        *{font-size: 13px;}
        .layui-layer-title{
            background:#fff; 
            color:#333; 
            border: none;
            font-size: 16px;
            padding: 24px 36px 0;
        }
        .sub-title{
            padding-left: 36px;
            font-size: 12px;
            color: #666;
        }
        .layui-layer-btn{
            text-align: left;
            margin-bottom: 20px;
            margin-left: 36px;
            font-size: 13px;
            a{
                background:#fff;
                border: none;
                border-radius: 20px;
                height: 34px;
                line-height: 34px;
                background-color: @theme-color;
                padding: 0 22px;
                margin-right: 12px;
            }
            .layui-layer-btn1{
                background:none;
                height: 32px;
                line-height: 34px;
                border: solid 1px #ccc;
                color: #333;
            }
            .layui-layer-btn2{
                background:none;
                border: none;
                color: #333;
                padding: 0 6px;
            }
        }
        .layui-form-item{
            margin-bottom: 12px;
        }
        .layui-form-label{
            padding: 7px 15px;
        }
        .layui-input-block{
         min-height: 34px;
         width: 360px; 
        }
        .layui-input, .layui-select, .layui-textarea{
            height: 34px;
            resize: none;
        }
        .first-form{
            .layui-form{
                display:inline-block;
                vertical-align: top;
            }
        }
    }
}
.content-voidbox{
    padding: 20px 32px;
    h3{
        line-height: 1.428;
        margin-bottom: 8px;
        color: #666;
    }
    textarea{
        width: 96%;
        height: 72px;
        padding: 12px;
        border-radius: 2px;
        border:solid 1px #e2e2e2;
    }
}

//物料详情
.admin-list-detail{
    position: relative;
}
@detail-border:#e8e8e8;
.admin-collapse{
    border: 1px solid @detail-border;
    border-radius: 2px;
    .admin-colla-item{
        border-top: 1px solid @detail-border;
        &:first-child{
            border-top: 0;
        }
        .admin-colla-title {
            position: relative;
            height: 36px;
            line-height: 36px;
            padding: 0 15px;
            color: #333;
            background-color: #eef9ef;
            i{
                margin-right: 6px;
            }
        }
        .admin-colla-content{
            padding: 10px 0;
            line-height: 22px;
            border-top: 1px solid @detail-border;
            color: #666;
            .info-list{
                margin: 0 15px;
                overflow: hidden;
                
            }
            .info-listbox{
                padding: 5px 0;
                float: left;
                width: 320px;
                height: 20px;
                line-height: 20px;
                &.width100{
                    width: 100%;
                }
                &.width33{
                    width: 32%;
                }
                .name{
                    padding-left: 20px;
                    color: #666;
                }
                .info{
                    display: inline;
                    color: #444;
                }
                .contract-number{
                    *{
                        color: @theme-color;
                    }
                    &:hover{
                       *{
                          text-decoration: underline;
                        } 
                    }
                }
            }
            .admin-subcheck{
                overflow: hidden;
                display: none;
                .layui-form-item{
                    float: left;
                    margin-bottom: 0;
                }
                .layui-input-block{
                    margin-left: 30px;
                }
            }
            .btn-drop-box{
                float: right;
                margin-right: 30px;
            }
        }
    }
}
//列表左边布局
@process-side-width: 300px;
.admin-list-leftpart{
    margin-right: @process-side-width;
    position: relative;
    z-index: 1;
}
.admin-list-rightpart{
    width: @process-side-width;
    position: absolute;
    top: 0;
    right: 0;
    text-align: center;
    z-index: 0;
}
@float-btn-width: 30px;
.float-btnbar{
    width: @float-btn-width;
    position: absolute;
    top: 38px;
    right: -@float-btn-width;
    button{
        border: none;
        padding: 8px 6px;
        background-color: #f7b824;
        border-radius: 2px;
        margin-bottom: 12px;
        color: #fff;
        cursor: pointer;
        .trandtion-ease();
        &:hover{
            opacity: .8;
        }
    }
}
.process-wrapper{
    margin: -10px 0;
    .process-list{
        display: table;
        width: 100%;
        .process-leftpart, .process-rightpart{
            display: table-cell;
            vertical-align: middle;
        }
        .process-leftpart{
            background-color: #f4fdf5;
            border-bottom: 1px solid #e8e8e8;
            width: 140px;
            .title{
                margin-left: 30px;
            }
        }
        .process-rightpart{
           border-left: solid 1px #e8e8e8;
        }
        .process-sublist{
            display: table;
            width: 100%;
            border-bottom: 1px solid #e8e8e8;
            min-height: 58px;
        }
        .process-sublist-leftpart, .process-sublist-rightpart{
            display: table-cell;
            vertical-align: middle;
        }
        .process-sublist-leftpart{
            
            .process-text{
                display: block;
                margin: 0 20px;
                .layui-form-item{
                    margin-bottom: 0;
                }
                .layui-input-block{
                    margin-left: 0;
                }
                .layui-input, .layui-textarea{
                    margin: 12px 0;
                }
                .layui-textarea{
                    min-height: 80px;
                }
            }
        }
        .process-sublist-rightpart{
            text-align: right;

            >span{
                display: block;
                margin-right: 20px;
            }
            .process-info{
                font-size: 13px;
            }
            .process-time{
                font-size: 12px;
                color: #666;
            }
        }
    }
    .process-footer{
        display: table;
        width: 100%;
        .process-leftpart, .process-rightpart{
            display: table-cell;
            height: 60px;
            vertical-align: middle;
        }
        .process-leftpart{
            padding-left: 20px;
        }
        .process-rightpart{
            text-align: right;
            padding-right: 20px;
        }
    }
}
//订单详情
.detail-stepbar{
    width: 85%;
    margin: 5px auto 15px;  
}
.stepbar{
    overflow: hidden;
   li{
       width: 20%;
       position: relative;
       text-align: center;
       float: left;
       dt{
           width: 24px;
           height: 24px;
           line-height: 24px;
           border-radius: 50%;
           background-color: #ccc;
           color: #fff;
           font-size: 14px;
           margin: 0 auto;
           i{
               display: none;
           }
           .circle{
               display: inline-block;
               width: 18px;
               height: 18px;
               border-radius: 50%;
               background-color: #fff;
               margin-top: 3px;
           }
           &:before{
               content: "";
               display: block;
               width: 100%;
               height: 6px;
               position: absolute;
               left: 0;
               top: 9px;
               background-color: #ccc;
               z-index: -1;
           }
       }
       dd{
           margin-top: 6px;
           color: #666;
           font-size: 12px;
       }
       &:first-child{
           dt:before{
               border-radius: 3px 0 0 3px;
           }
       }
       &:last-child{
           dt:before{
               border-radius: 0 3px 3px 0;
           }
       }
       &.step-active{
           dt{
               background-color: @theme-color;
               &:before{
                   background-color: @theme-color;
               }
           }
           dd{
               color: @theme-color;
           }
           i{
               display: inline;
           }
           .circle{
               display: none;
           }
       }
   }
}

//发货信息
.order-state{
    display: inline-block;
    padding: 0 3px;
    border-radius: 2px;
    background-color: #ff6600;
    margin-left: 5px;
    color: #fff;
    font-size: 12px;
    font-weight: normal;
}
.order-topbox{
    border: solid #f6ebbc 1px;
    background-color: #fcfaf0;
    margin:6px 0 16px;
    li{
        border-top: solid 1px #f6ebbc;
        padding: 16px 20px;
        &:first-child{
            border-top: none;
        }
    }
    .order-cardbox{
        font-size: 14px;
        font-weight: bold;
    }
    .order-infobox{
        span{
            margin-right: 60px;
        }
    }
}

/*供应商推荐*/
.supplier-list{
    .trandtion-ease();
    &:hover{
        box-shadow: 0 0 12px rgba(0, 0, 0, .2);
    }
}
.supplier-table{
    tr:hover{
        background-color: #fff;
    }
    th{
        text-align: center;
        font-weight: normal;
        background-color: #f8f8f8;
    }
    td{
        padding: 15px;
    }
    .baseInfo{
        li{
            display: inline-block;
            width: 28%;
            margin-right: 7%;
            line-height: 24px;
            font-size: 13px;
            color: #666;
            &:nth-child(3n){
               margin-right: 0; 
            }
            span{
                color: #444;
            }
        }
    }
    .preOrderNum{
        .orderNum{
            width: 64px;
            height: 26px;
            line-height: 26px;
            text-align: center;
            border: 1px solid #ccc;
            border-radius: 2px;
            .trandtion-ease();
            &:hover,&:focus{
                border-color: @theme-color;
            }
        }
    }
    .supplier-company{
        min-width: 200px;
        .order-state{
            background-color: @adorn-color;
            cursor: pointer;
        }
        .score{
            display: inline-block;
            margin-top: 10px;
            padding-top: 10px;
            padding: 8px 8px 0;
            border-top: 1px solid #e0e0e0;
            color: red;
            font-size: 16px;
        }
    }
}
